<template>
  <app-topnav />
  <app-header />
  <RouterView />
  <app-footer />
  <!-- 吸顶的头部 -->
  <app-header-sticky/>
</template>

<script>
import AppFooter from '../components/app-footer.vue'
import AppHeader from '../components/app-header.vue'
import appTopnav from '../components/app-topnav.vue'
import { useStore } from 'vuex'
import AppHeaderSticky from '@/components/app-header-sticky.vue'

export default {
  components: { appTopnav, AppHeader, AppFooter, AppHeaderSticky },
  setup () {
    const store = useStore()
    store.dispatch('category/getAllCategory')
  }
}
</script>

<style lang="less" scoped>

</style>
